﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace l1cs.server.serverpackets
{
    public class S_Bookmarks : ServerBasePacket
    {
        private static Logger _log = Logger.getLogger( typeof( S_Bookmarks ).FullName );

        private byte[] _byte = null;

        public S_Bookmarks( String name, int map, int id )
        {
            buildPacket( name, map, id );
        }

        private void buildPacket( String name, int map, int id )
        {
            writeC( Opcodes.S_OPCODE_BOOKMARKS );
            writeS( name );
            writeH( map );
            writeD( id );
        }

        override
        public byte[] getContent()
        {
            if ( _byte == null )
            {
                _byte = getBytes();
            }

            return _byte;
        }

        override
        public String getType()
        {
            return "[S] S_Bookmarks";
        }
    }
}
